import request from '~/utils/resquest'

// 个人消息列表
export const sendListGet = <T>(params: T) =>
  request({
    url: '/api/gxsaas-system/send/list',
    method: 'get',
    params
  })

// 删除个人消息
export const sendRemovePost = <T>(params: T) =>
  request({
    url: '/api/gxsaas-system/send/remove',
    method: 'post',
    params
  })

// 一键已读
export const sendReadAllPost = <T>(params: T) =>
  request({
    url: '/api/gxsaas-system/message/batchReadByIds',
    method: 'post',
    params
  })
